<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/


Route::group(['middleware' => 'page-cache'], function() {
	Route::get('/', 'IndexController@index')->name('index');
	Route::get('/allModel', 'ProductController@allProduct')->name('allModel');
	Route::get('/getModelDetails/{id}', 'ProductController@getProductDesc')->name('getModelDetails');
	Route::get('/contact', 'ContactController@index')->name('contact');
    Route::get('/newsList', 'NewsController@list')->name('newsList');
    Route::get('/newsDetails/{id}', 'NewsController@details')->name('newsDetails');
});
